package com.ruoyi.system.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

import java.util.List;

/**
 * 供应商信息对象 sys_supplier
 *
 * @author ruoyi
 * @date 2024-07-21
 */
public class SysSupplier extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /**
     * 供应商ID
     */
    private Long supplierId;

    /**
     * 供应商名
     */
    @Excel(name = "供应商名")
    private String supplierName;

    /**
     * 公司法人
     */
    @Excel(name = "公司法人")
    private String legalPerson;

    /**
     * 经营规模
     */
    @Excel(name = "经营规模")
    private String scale;

    /**
     * 营业执照
     */
    @Excel(name = "营业执照")
    private String businessLicense;

    /**
     * 经度
     */
    @Excel(name = "经度")
    private String longitude;

    /**
     * 纬度
     */
    @Excel(name = "纬度")
    private String latitude;

    /**
     * 产品列表
     */
    private List<SysProduct> products;



    public void setSupplierId(Long supplierId) {
        this.supplierId = supplierId;
    }

    public Long getSupplierId() {
        return supplierId;
    }

    public void setSupplierName(String supplierName) {
        this.supplierName = supplierName;
    }

    public String getSupplierName() {
        return supplierName;
    }

    public void setLegalPerson(String legalPerson) {
        this.legalPerson = legalPerson;
    }

    public String getLegalPerson() {
        return legalPerson;
    }

    public void setScale(String scale) {
        this.scale = scale;
    }

    public String getScale() {
        return scale;
    }

    public void setBusinessLicense(String businessLicense) {
        this.businessLicense = businessLicense;
    }

    public String getBusinessLicense() {
        return businessLicense;
    }

    public void setLongitude(String longitude) {
        this.longitude = longitude;
    }

    public String getLongitude() {
        return longitude;
    }

    public void setLatitude(String latitude) {
        this.latitude = latitude;
    }

    public String getLatitude() {
        return latitude;
    }

    public List<SysProduct> getProducts() {
        return products;
    }

    public void setProducts(List<SysProduct> products) {
        this.products = products;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("supplierId", getSupplierId())
                .append("supplierName", getSupplierName())
                .append("legalPerson", getLegalPerson())
                .append("scale", getScale())
                .append("businessLicense", getBusinessLicense())
                .append("longitude", getLongitude())
                .append("latitude", getLatitude())
                .append("products", getProducts())
                .toString();
    }
}
